import { queryCodeupApp } from '@/service/deliver';
import { useRequest } from 'ahooks';
import { Select } from 'antd';
import React from 'react';
const AppSelect = ({ ...props }) => {
  const { data } = useRequest(queryCodeupApp, {})
  //   @ts-ignore
  const records = data ? data.records : []
  console.log('datadata', data)
  return (<Select
    {...props}
    options={records}
    fieldNames={{
      label: 'name',
      value: 'id'
    }}
  />)
}
export default AppSelect